namespace MyBlog.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    [Serializable]
    public partial class AlbumModel
    {
        public AlbumModel()
        {
            AlbumDetails = new List<AlbumDetailModel>();
        }

        public int ID { get; set; }

        [Required]
        [StringLength(50)]
        public string AccountId { get; set; }

        [Required]
        [StringLength(50)]
        public string AlbumName { get; set; }

        [StringLength(200)]
        public string Description { get; set; }

        public bool IsOpen { get; set; }

        public DateTime CreateTime { get; set; }

        public  AccountModel Account { get; set; }

        public  List<AlbumDetailModel> AlbumDetails { get; set; }
    }
}
